package blog.service;

import blog.pojo.ChapterCategory;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface ChapterCategoryService {
    List<ChapterCategory> getIndexList() throws Exception;

    Page<ChapterCategory> getPage(Page<ChapterCategory> page, ChapterCategory chapterCategory, String keywords) throws Exception;

    Boolean insert(ChapterCategory chapterCategory) throws Exception;

    Boolean update(ChapterCategory chapterCategory) throws Exception;

    List<ChapterCategory> getCategoryList(Integer level) throws Exception;

    ChapterCategory get(ChapterCategory chapterCategory) throws Exception;

    List<ChapterCategory> getAll() throws Exception;

    List<ChapterCategory> getListByChapterId(Integer id) throws Exception;

    Integer selectCountByPid(Integer pid) throws Exception;
}
